package com.example;

public class ColumnInfo {
    private String name;
    private String type;
    private boolean primaryKey;
    private String javaType;
    private String javaName;

    private String comment;

    // 构造函数、getter和setter

    public ColumnInfo(String name, String type, boolean primaryKey, String javaType, String javaName, String comment) {
        this.name = name;
        this.type = type;
        this.primaryKey = primaryKey;
        this.javaType = javaType;
        this.javaName = javaName;
        this.comment = comment;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public boolean isPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(boolean primaryKey) {
        this.primaryKey = primaryKey;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getJavaName() {
        return javaName;
    }

    public void setJavaName(String javaName) {
        this.javaName = javaName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}